/* Copyright (c) 2025 Beijing Semidrive Technology Corporation
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/** *****************************************************************************************************
 *  \file     Eth_Fault.h                                                                               *
 *  \brief    This file contains interface header for SPI Fault injection.                              *
 *                                                                                                      *
 * <table>                                                                                              *
 * <tr><th>Date           <th>Version                                                                   *
 * <tr><td>2023/08/15     <td>1.0.0                                                                     *
 * </table>                                                                                             *
 *******************************************************************************************************/

#ifndef ETH_FAULT_H
#define ETH_FAULT_H

#ifdef __cplusplus
extern "C" {
#endif
/********************************************************************************************************
 *                                 Global Macro definition                                              *
 *******************************************************************************************************/
/** \brief  SPI fault injection switch */
#if !defined(ETH_FAULT_INJECTION)
#define ETH_FAULT_INJECTION                                              (STD_OFF)
#endif /** #if !defined(ETH_FAULT_INJECTION) */

#if (ETH_FAULT_INJECTION == STD_OFF)

/** \brief  FUNCTION:Eth fault injection. */
#define  EthFaultInj_Eth_ctrl_handle_Mac()
/** \brief  FUNCTION:Eth fault injection. */
#define  EthFaultInj_Eth_ctrl_handle_Mmc()
/** \brief  FUNCTION:Eth fault injection. */
#define  EthFaultInj_Eth_RxBuffer_Invalide()
/** \brief  FUNCTION:Eth fault injection. */
#define EthFaultInj_Eth_AllocDesc_Invalide()
/** \brief  FUNCTION:Eth fault injection. */
#define  EthFaultInj_Eth_Mmc_Counter()
/** \brief  FUNCTION:Eth fault injection. */
#define  EthFaultInj_Eth_Rx_Handler()
/** \brief  FUNCTION:Eth fault injection. */
#define  EthFaultInj_Eth_Mtl_Handler()
/** \brief  FUNCTION:Eth fault injection. */
#define  EthFaultInj_Eth_Mdio_Timeout()
/** \brief  FUNCTION:Eth fault injection. */
#define  EthFaultInj_Eth_Qsize_Test()
/** \brief  FUNCTION:Eth fault injection. */
#define  EthFaultInj_Eth_Desc_Test()
/** \brief  FUNCTION:Eth fault injection. */
#define  EthFaultInj_Eth_rxDesc_Test()
/** \brief  FUNCTION:Eth fault injection. */
#define  EthFaultInj_Eth_DescOwn_Test()
/** \brief  FUNCTION:Eth fault injection. */
#define  EthFaultInj_Eth_InfType_Test()
/** \brief  FUNCTION:Eth fault injection. */
#define  EthFaultInj_Eth_Ptp_Test()
/** \brief  FUNCTION:Eth fault injection . */
#define  EthFaultInj_Eth_Desc_Test_Rx()


#else
#include "Eth_UserFault.h"
#endif /* #if (ETH_FAULT_INJECTION == STD_OFF) */

#if !defined(ETH_IRQ_TIME_MEASURE)
#define  EthFaultInj_Eth_Irq_Entry()
#define  EthFaultInj_Eth_Irq_Exit()
#endif

#ifdef __cplusplus
}
#endif

#endif /* ETH_FAULT_H */
/* End of file */
